
interface  IDCalculator{
    int square(int i);
}

public class LambdaDemo01 {
    public static void main(String[] args){
        IDCalculator ic = (int i) -> i*i;
        int square = ic.square(5);
        System.out.println("square="+square);
    }
}
